//
//  FirstXibViewController.m
//  11-Xib
//
//  Created by Snow on 16/7/28.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "FirstXibViewController.h"
//签订代理 指定代理人 实现协议方法 指定代理人 在xib中可以通过控件向file`s owner 去指定
//相当于self.usertextfield.delegate = self;
//只需要签订代理实现代理方法
@interface FirstXibViewController ()<UITextFieldDelegate>
//IBOutlet修饰的属性 是xib/SB中的控件
//实心圆圈说明已关联对象
//@property (weak, nonatomic) IBOutlet UITextField *userNameTextField;
@property (weak, nonatomic) IBOutlet UITextField *user;

//空心圆圈说明未关联对象 可以反拖 不按Ctrl
@property (weak, nonatomic) IBOutlet UITextField *passWordTextField;
//xib/SB中控件与VC或自定义view/自定义cell关联后 如果属性被删除 对应控件的关联也应删除(右键查看控件的 reference IBOutlet)
//如果控件非常多 出现问题 查看崩溃问题中 setvalue forundefinedkey
//在搜索栏; 搜索关键词:userNameTextfield command + f
@end

@implementation FirstXibViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}
//如果不更改button的一些属性 直接拖成方法
- (IBAction)loginAction:(id)sender {
    NSLog(@"注册");
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
